export default {
  namespaced: true,
  state: {
    username: '',
    userId: '',
    token: ''
  },
  getters: {
  },
  mutations: {
    loginMutaion(state, user) {
      state.username = user.username;
      state.userId = user.userId;
      state.token = user.token;
    },
    logoutMutaion(state) {
      state.username = '';
      state.userId = '';
      state.token = '';
    }
  },
  actions: {
  }
}